package com.dlnu.mapper;

import java.util.List;

import com.dlnu.bean.User;
import org.apache.ibatis.annotations.Param;

//@Mapper
public interface UserMapper {

//	@Insert("insert into tb_user values (default, #{userName}, #{password}, #{name}, #{phone}, #{type}, #{remark})")
	int create(User user);

//	@Select("select * from tb_user")
	int delete(Integer id);

	int update(User user);

	int updateSelective(User user);

	List<User> query(User user);

	User detail(Integer id);

	User login(@Param("userName") String userName,@Param("password") String password);

	int count(User user);

}